package org.turnlink.sclm.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.turnlink.sclm.service.SessionManager;

public class SessionCleanupJob {

	private final Log log = LogFactory.getLog(getClass());
	
	@Autowired
	private SessionManager sessionManager;
	
	public void cleanup() {
		log.debug("Cleaning up old sessions.");
		sessionManager.removeOldSessions();
		log.debug("Finished cleaning up old sessions.");
	}
	
}
